const ENV = process.env.VUE_APP_ENV;
const PUBLIC_PATH = process.env.VUE_APP_PUBLIC_PATH;
const OUT_DIR = process.env.VUE_APP_OUT_DIR;
const ASSETS_DIR = process.env.VUE_APP_ASSETS_DIR;
const INDEX_PATH = process.env.VUE_APP_INDEX_PATH;

module.exports = {
  publicPath: PUBLIC_PATH,
  outputDir: OUT_DIR,
  assetsDir: ASSETS_DIR,
  indexPath: INDEX_PATH,
  lintOnSave: true,
  runtimeCompiler: false,
  css: {
    loaderOptions: {
      css: {},
      postcss: {
        plugins: [
          require("postcss-px2rem")({
            // 换算基数(设计图/10)
            remUnit: 37.5,
          }),
        ],
      },
    },
  },
};
